package com.frxuexi.base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.frxuexi.base.bean.SearchBean

@Dao
interface VideoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertVideo(searchBean: SearchBean):Long

    @Query("select * from info order by id desc")
    fun selectInfo():List<SearchBean>

    @Delete
    fun deleteInfo(searchBean: SearchBean):Int
}